#!/bin/bash

dir=$1
bin=$2
log=./ii.log

echo > $log
files=`ls $dir`
for f in $files
do
  echo "deal with $dir/$f"
  echo "file : $dir/$f" >> $log
  $bin -t=keepout --img_file=$dir/$f >> $log
done